package com.wsg.dep.queue;

import com.wsg.dep.Constant;

/**
 * @className: SleepEvent
 * @author: 承泽
 * @date: 2025/3/20 17:21
 * @description:
 */
public class SleepEvent {

    private long value = Constant.INITIAL_VALUE;

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public void sleep() {
        try {
            Thread.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public String toString() {
        return "SleepEvent{" +
                "value=" + value +
                '}';
    }
}
